package com.yfp.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.operation.domain.ComboDO;
import com.yfp.operation.domain.dto.ComboSaleDataDTO;
import com.yfp.operation.domain.vo.ComboSaleDataVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*
* @description 针对表【combo(套餐表)】的数据库操作Mapper
* @createDate 2024-04-24 14:17:39
* @Entity com.yfp.operation.domain.Combo
*/
public interface ComboMapper extends BaseMapper<ComboDO> {


    String getName(String comboId);

    List<ComboDO> findByComboIds(@Param("comboIds")List<String> comboIds);

    /**
     * 套餐销售数据
     * @param comboSaleDataDTO
     * @return
     */
    @DataScope(deptAlias = "ar,ro,po,ma,co")
    List<ComboSaleDataVO> comboSaleData(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 数据补全
     * @param comboSaleDataDTO
     * @return
     */
    List<ComboSaleDataVO> complementSaleData(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 套餐数据总览
     * @param comboSaleDataDTO
     * @return
     */
    ComboSaleDataVO comboDataTotal(ComboSaleDataDTO comboSaleDataDTO);

    /**
     * 套餐销售详情
     * @param comboSaleDataDTO
     * @return
     */
    List<ComboSaleDataVO> comboSaleInfo(ComboSaleDataDTO comboSaleDataDTO);
}
